<script>
import api from '@/api'
import { useUserStore } from '@/stores/user'
export default {
  onLaunch: async (options) => {
    console.log('App Launch')
    await api.code_to_token()
		useUserStore().updateNum()
  },
  onShow: async function(options) {
    console.log('App Show')
  },
  globalData: {
    appid: 'wx1a6fe869533adaff',
    // secret: '358b851231113f64d38da9aba8ebf660',
		tabBarQuery: null
  }
}
</script>


<style lang="scss">
	@import "iconfont";
	@import "nutui-uniapp/styles/index.scss";

	/*每个页面公共css */
	.page {
		font-size: 26upx;
		padding-bottom: 130upx;
		box-sizing: border-box;
		overflow-x: hidden;
		color: $uni-text-color;
		min-height: 100vh;
	}
	textarea {box-sizing: border-box;}

	.flex-c {display: flex;align-items: center;justify-content: center}
	.align-c {align-items: center;}
	.border1000 {border-radius: 1000px;}
	.tc {text-align: center}
	.tl {text-align: left}
	.lh150 { line-height: 1.5;}
	.fb{font-weight: bold}
	image{will-change: transform}
	.w100{width: 100%}
	.h100{height: 100%}
	.gray-image {filter: grayscale(1);}




	/* color */
	.cl-orange {color: $uni-color-orange;}
	.cl-blue {color: $uni-color-blue;}
	.cl-blue-light {color: $uni-color-blue-light;}

	.open-type-button {
		background-color: transparent;
		line-height: unset;
		font-size: unset;
    color: unset;
		padding-left: 0;
		padding-right: 0;
		&:after {
			border: none;
			background-color: transparent;
		}
	}


	//radio
	.uni-list-cell {
		padding: 16upx;
		padding-right: 0;
		display: flex;
		align-items: center;
		color: white;

		.self-style-radio {
			background: transparent!important;
		}

		.name {
			min-width: 270upx;
			margin-left: 32upx;
		}
	}

	.color-gold {
		color: #ff9921!important;
	}
	.color-platinum {
		color: #87ceeb!important;
	}
	.color-superior {
		color: #a020f0!important;
	}


	.segmented-control{
		overflow: auto!important;
	}
	.segmented-control__item {
		padding: 20upx;
		white-space: nowrap;
	}


</style>
